Saves the plot to a png file