adding images and image replace on popover