refactored api picture url lookup and added get_api_picture_url_flickr