Unsquish pageimages on nearby

Take into account whether they are portrait or landscape

Change-Id: I45aaaa0ff897febf8d8201fe87f310be88394cd9
Merge "Unsquish pageimages on nearby"