Last night I managed to mostly finish a piece of library code that I can use pretty much in all of my various projects. For the longest time, I haven't been happy with the way images are referenced, stored, labeled and the quality of the thumbnails. The new code, in less than 800 lines, does all of that now. It needs a little refactoring, but generally speaking it works really well.
I am pleased. :)