Adding modified code to plot to png files. 1st cut of PNG files.