Added png extension to output file name.