public static BufferedImage imageCafeToBufferedImage(int x, int y, ImageCafe image) {
		BufferedImage im = new BufferedImage(x, y, BufferedImage.TYPE_INT_ARGB);
		for (int ii = 0; ii < x; ii++)
	    {
	         for (int jj = 0; jj < y; jj++)
	         {
	        	ColorCafe colorCafe = image.getValue(ii, jj);
	        	int red, blue, green, alpha;
		      	red = colorCafe.getRed();
		      	blue = colorCafe.getBlue();
		      	green = colorCafe.getGreen();
		      	alpha = colorCafe.getAlpha();
		      	Color color = new Color(red, green, blue, alpha);
		        int rgbnumber = color.getRGB();
	            im.setRGB(ii, jj, rgbnumber);
	         }
	    }
		return im;
	}