made writing to PNG files consistent for all plots

made writing to PNG files consistent for all plots