Have you thought about adding the image directly to the popup, then linking the image in the popup to the full image? Under the Popup Media section, you can add an image and use the field that contains the URL to the image. For example, if your field is called photo, you'd enter the URL to it like this:
{photo}
where the curly braces indicate the field name and the field value will be substituted.
Mike