made new partial to accommodate images whether they are portrait or landscape and retain proper display dimensions