Prepare Flickr query for media