private static BufferedImage loadImage(File f) throws Exception{

		BufferedImage paintImage = ImageIO.read(f);
		
		if(paintImage.getHeight() != 32 && paintImage.getWidth() != 32){
			throw new Exception("Image dimensions incorrect!");
		}
		return paintImage;
	}