Try to get image from search up to five times