Okay, I see what’s happening!
If both boxes are selected, you have to do resizing in three steps:
- Resize the entire box (image and text) first;
- Then resize the image but only within the enlarged boundary;
- Get rid of the excess space (if there is any) in the text box.