Scale the image using CENTER.
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.
Get monthly updates about new articles, cheatsheets, and tricks.