save updated figure.