code: public void writeImage(File input, File output, String formatName)
  			throws IOException {
  		BufferedImage image = createImage(input);
  		ImageIO.write(image, formatName, output);
  	}
docs: Writes an image to the output file that displays the structure of the PE
  file.
  
  @param input
  the PE file to create an image from
  @param output
  the file to write the image to
  @param formatName
  the format name for the output image
  @throws IOException
  if sections can not be read