Scale the image using CENTER.
Official Docs
This expands the image to try to match the container and it will align it to the center, it will fit to the smaller size.
Bigger height ( fit to width )
Same width and height.