Fix cache_images tracking.
Fix to sql in models.
Change imagescale to imagecopyresampled.  Imagescale is not a supported feature?
Don't track the cache.
Random cleanup to work on the LAMP stack.