added some error handling for image crawling