if (im == null || formatName == null || output == null) throw new IllegalArgumentException ("null argument");
  public static boolean write(RenderedImage im,                              String formatName,                              File output)    throws IOException  {    return write(im, formatName, new FileOutputStream(output));  }