added check to make sure thumbnail url exists otherwise fallback to main url