some malformed code
cache image-resize operations

seems about 50% faster image loads. I'll need to add the cache table to
the setup file