Fixed issues with image aspect ratio being distorted on resize.