Updated Export_fig functionality