How to properly parse an image in a pop-up window?

Tell me please. How to properly parse an image in a pop-up window. Thanks