code: public static File write(final BufferedImage bufferedImage, final String formatName,
  		final File outputfile) throws IOException
  	{
  		ImageIO.write(bufferedImage, formatName, outputfile);
  		return outputfile;
  	}
docs: Convenience method to write the given {@link BufferedImage} object to the given {@link File}
  object.
  
  @param bufferedImage
  the {@link BufferedImage} object to be written.
  @param formatName
  the format name
  @param outputfile
  the output file
  @return the file
  @throws IOException
  Signals that an I/O exception has occurred.