cleanup cache function implemented
moved cache dir one level up
removed log output, we don't want to leak what images we stored.
- removed the last bits of logging during cache cleanup
- image loading is now based on actual image type, not on extension
- implemented render($dir) (takes a while :))
fixed endless loop in rendering method