function ImageKeeper(){
	this.photos = new Object();
	this.paths = new Array();
	for(var i=0; i < arguments.length; ++i){
		this.paths.push(arguments[i]);
	}
	if( ImageKeeper.PRELOAD && Wounded){
		setTimeout(Wounded.bind(function(that){
			for(var i=0; i < that.paths.length; ++i){
				that.load(that.paths[i]);
			}
		}, this), 100);
	}
}
ImageKeeper.preload = function(v){ ImageKeeper.PRELOAD = v; }
ImageKeeper.PRELOAD = false;
ImageKeeper.fix_path = function(path){ return path.replace(/\//g, '_'); }
ImageKeeper.prototype.load = function(path){
	var prop = ImageKeeper.fix_path(path);
	if( ! this.photos[prop] ){
		this.photos[prop] = new Image();
		this.photos[prop].src = path;
		return true;
	}
	return false;
}
ImageKeeper.prototype.image = function(path){
	if( ! this.photos[ImageKeeper.fix_path(path)])
		this.load(path);
	return this.photos[ImageKeeper.fix_path(path)]
}
