Don't clean the cache for every image!

This is a big drag on performance for sites with lots of images, plus
because of a sort of bug with the core phpThumb class, it doesn't
actually do anything.
We'll move this to the phpThumbOf Cache Manager plugin instead.
Fix 3 different file-naming bugs, plus performance tweaks