Rewrote huge parts. Dimensions now are part of the filename. Fixed some path issues. Added caching headers, log option and stuff.