fixed portrait and landscape photo resizing for ipad as well; added all contraints