Curious why this uses the height of the editor when in landscape, since the goal is to resize the image to fit the width.