Fixed issue with resizing images above original size