How to make text and picture of the same width ?

same result.
sometimes I get the correct result, but after clicking “compile” the text wrapping doesn’t work again.