Save image to a png file, print progress and statistics to stdout.