Improve resizing behavior
Ensure the image is always fully covered by the mask