A temp fix until I get home and find the property that affects this: change the image width to be as little as possible and adjust the sizing margins.
I tried that, and as I know nothing about sizing margins I messed a bit with them and got to the result that now it looks ok when the window has the image's size, and when I make it bigger, only a tiny bit stretches. But it still does.