static byte[] rgbImageToPNG(RGBImage img) { ret toPNG(img.getBufferedImage()); }