Fixed issues with the photo viewer mode on iOS.