added the code specific to extract flickr and partial 500px