This is just a quick code snippet that gets the flickr url for a photo's smaller version (provided you have the photoId).