if an image attachment has no url, link to the object or activity