docs: public static ByteBuffer getImageByteBuffer(RenderedImage image) {
          ColorModel cm = image.getColorModel();
          WritableRaster wr = image.getData().createCompatibleWritableRaster(image.getWidth(), image.getHeight());
          image.copyData(wr);
          BufferedImage bi = new BufferedImage(cm, wr, cm.isAlphaPremultiplied(), null);
          return convertImageData(bi);
      }