public function getCachedImage()
 {
     if ($this->isInDB()) {
         return SSImageMin::get_cached_image($this->getFullPath());
     } else {
         if (!$this->exists()) {
             return;
         }
         return SSImageMin::get_cached_image(Director::baseFolder() . '/' . $this->fileName);
     }
 }
 function run($request)
 {
     SSImageMin::delete_cache_files();
 }