Have an img tag inside a div expand the image to cover the containing div like css backgrounds can

Getting the perks of background image options with a regular img:

Apply to an img tag or class on the image tag:

  object-fit: cover;

Pretty well supported now: https://caniuse.com/#feat=object-fit

More: https://developer.mozilla.org/en-US/docs/Web/CSS/object-fit