Bug 848625 - make image editing work after orientation changes