Fix the --png utility command. Closes #6845.