If you're running a Flickr account for your library, you might be
interested in this project (from a former Flickr developer).
Create a parallel version of your account on your own server, with access
controls and all that goodness baked in.
A grain of salt though, the code is young and is on github for a reason: he
wants people to help make it better.