object-fit and object-position

Crop images in a similar to way background images by using object-fit and object-position