Fixed issue with image aspect ratios