Fix image viewer in landscape mode on iOS 8