Fix for landscape background images

In landscape mode, the background image was stretched as if the document was portrait.