You can add such class embellishments to your image and image container, which I think is the best solution, and it works for any screen size. If you use some css properties of background alone, it won't cover the entire container.
background-image: url('img/{yourPicture}.png');
You need to use this component to set the image as the background image in mendix.