added fallback logic to flickr search