public BufferedImage play() {
		if (loopsLeft != 0) {
			if (time-- <= 0) {
				time = timer;
				BufferedImage image = currentImage();
				if (++current >= animation.count()) {
					current = 0;
					if (loopsLeft > 0) {
						loopsLeft--;
					}
				}
				return image;
			}
		}
		return currentImage();
	}