Fixed bug where an images has been cropped even when not needed resulting in an ugly border