public static BufferedImage getAnimationFrame(BufferedImage image, int x, int y, int width, int height) {
		return image.getSubimage(x * width, y * height, (width > 0 ? width : 1), (height > 0 ? height : 1));
	}