/**
  * Resize all thumbnails
  */
 public function actionResize()
 {
     $models = Mediafile::findByTypes(Mediafile::$imageFileTypes);
     $routes = $this->module->routes;
     foreach ($models as $model) {
         if ($model->isImage()) {
             $model->deleteThumbs($routes);
             $model->createThumbs($routes, $this->module->thumbs);
         }
     }
     Yii::$app->session->setFlash('successResize');
     $this->redirect(Url::to(['default/settings']));
 }