changed final plot to .png