In Line 18 of the new choose method in flickr.rb the pics array is being destroyed rather than using the set which is a duplicate of it. Changing the two "pics" references to "set" fixes the problem. In it's current state, it'll consume all the pictures in your flickrstream the second time you relaod the page.