Copy pasted flickr algorithm