if no image is set, it won't generate the <img> tag.