Cannot use `object-fit` CSS property because of missing support in dompdf (schedule for 2.0.5, see [issue](https://github.com/dompdf/dompdf/issues/2278)).