Now the application does not lose photo data when the screen is rotated.