public Sprite(String name, BufferedImage image, int width, int height, Point origin)
	{
		this.name=name;
		this.image=image;
		this.width=width;
		this.height=height;
		
		if(this.width==-1)
			this.width=this.image.getWidth();
		if(this.height==-1)
			this.height=this.image.getHeight();
		
		this.anchor=origin;
		
		hSubimages=image.getWidth()/width;
		
		spriteMap.put(name,this);
	}