save_plot function

Save plots to file