Picture size: larger than screen
I wasn't able to reproduce the problem of the popup going off the screen for images that are too wide, but I did find that the popup's titlebar got hidden behind the menu if the image was too tall.

I've opened this pull-request to make things work a bit better in that situation.