private function resizeImages($savePath, $files)
 {
     foreach ($files as $file => $info) {
         $imageResizer = new Application_Model_ImageResizer($savePath, $info['name']);
         $imageResizer->resizeImageToFitWithinMaxDimensions(100, 1);
     }
 }
 private function resizeImagesAndCreateThumbnails($savePath, $files)
 {
     foreach ($files as $file => $info) {
         $imageResizer = new Application_Model_ImageResizer($savePath, $info['name']);
         $imageResizer->resizeImageToFitWithinMaxDimensions(640, 640);
         $imageResizer->createThumbnail(100);
         $imageResizer->thumbPath = $savePath . 'small/';
         $imageResizer->createThumbnail(50);
     }
 }