docs: public static void writeImage(final BufferedImage im, final String formatName, final File output)
              throws IOException {
          if (!ImageIO.write(im, formatName, output)) {
              throw new RuntimeException("Image format not supported: " + formatName);
          }
      }