ImageIO.write(image._bufferedImage, "jpeg", env.getOut());
if (path != null) { WriteStream os = path.openWrite(); try { ImageIO.write(image._bufferedImage, "jpeg", os); } finally { os.close(); } } else ImageIO.write(image._bufferedImage, "jpeg", env.getOut());
  public static boolean imagejpeg(Env env, QuercusImage image)  {    try {      ImageIO.write(image._bufferedImage, "jpeg", env.getOut());      return true;    }    catch (IOException e) {      throw new QuercusModuleException(e);    }  }