Nice this is really awesome but couldn't you just have done

photos.get_image()

I really love the bottle server though aswell