public function actionDeleteImage($id)
    {
        $model = $this->module->manager->findGalleryImageById($id);
        if ($model === null) {
            throw new NotFoundHttpException('The requested page does not exist');
        }

        $model->delete();

        \Yii::$app->getSession()->setFlash('gallery.success', \Yii::t('gallery', 'Image has been deleted'));

        return $this->redirect(['images', 'id' => $model->gallery_id]);
    }