adjusts logic on template to account for no image or no location