added code to save images of new plots