public void updateImage()
	{
		//we will update animation when delay counter reaches delay, then reset delay counter
		delayCounter++;
		if(delayCounter>delay)
		{
			delayCounter=0;
			frameNumber--;//updates frame to next frame
			if(frameNumber < totalFrame-12)
			{
				frameNumber=11;// if surpass 12th frame, back to frameNumber 0
			}
			//sets image to specific frameNumber by multiplying it with 500, aka width of the image
			this.setImage(frameNumber*500,0,width,height ,newWidth, newHeight );
		}
	}