docs: public static ByteBuffer getImageData(InputStream source, Format format, Rectangle size) {
          try {
              final BufferedImage image = ImageIO.read(source);
              size.setSize(image.getWidth(), image.getHeight());
              return getImageData(image, format);
          } catch (IOException ex) {
              throw new IllegalStateException("Unreadable texture image data", ex);
          }
      }