Add has_image helper and use it in the view