added new savefigure function for easier workflow with authorea