centralize flickr ID extraction