resizing of portrait oriented pictures fix