Saves figure after every 10 epochs if opts.outputfolder is set... avoids losing the figure if server is restarted