Added loading spinner when opening and saving image