public Image getImage()
{
	if (direction == "left") {
		if (!moving)
			return staticleftimages.getImage();
		else
			return leftimages.getImage();
	} else if (direction == "right") {
		if (!moving)
			return staticrightimages.getImage();
		else 
			return rightimages.getImage();
	}

	return rightimages.getImage(2);
}