Here you can grab the current source for PicBlog.
Don’t be scared by what you’ll see inside there :). There are several things that can be improved (for example, the building of the XML file shouldn’t be done by concatenating strings…) but there are some interesting parts. Not all the code is commented, by the way.
If you want to make some modifications, feel free to go wild and then send me your work, so I can incorporate it back into the main code. I’m still tweaking and fixing stuff around, so I’ll try to merge your contributions in the best possible way.