don't try to display the image if not exsit

why not use this img_url variable below when creating the link and img tags?