public BufferedImage toImage(ImageBean i) {
		BufferedImage image = new BufferedImage(i.getWidth(), i.getHeight(), 1);
		int[] pixels = i.getPixels();
		for (int x = 0; x < image.getWidth(); x++) {
			for (int y = 0; y < image.getHeight(); y++) {
				int rgb = pixels[(x + y * image.getWidth())];
				if (rgb == 0) {
					rgb = 16711935;
				}
				image.setRGB(x, y, rgb);
			}
		}
		return image;
	}