Added command-line options to specify output file, and width/height of the image.