format data from flickr when making a fetch before sending to client