Added conditional to popup content to skip trying to add an image if there isn't one.