dynamically adjusting large image based on photo aspect ratio