Responsive image

Hello all, is there any way to avoid losing part of the image when changing screen size, like shown the image above?

Set image resize mode to contain