Added handling of images higher than they are wide
Corrected centering of portrait images