public function actionImage($id)
 {
     $photo = PhotoActiveRecord::findOne($id);
     $user = User::findOne($photo->userId);
     $photovote = PhotoRatesActiveRecord::getRates($id);
     $comments = QueryModel::comments($id);
     $tags = QueryModel::photoTags($id);
     $search = new SearchForm();
     if (!Yii::$app->user->isGuest) {
         $model = new CommentForm();
         if ($model->load(Yii::$app->request->post()) && $model->post()) {
             return $this->refresh();
         } else {
             return $this->render('image', ['user' => $user, 'photo' => $photo, 'photovote' => $photovote, 'comments' => $comments, 'tags' => $tags, 'search' => $search, 'model' => $model]);
         }
     } else {
         return $this->render('image', ['user' => $user, 'photo' => $photo, 'photovote' => $photovote, 'comments' => $comments, 'search' => $search, 'tags' => $tags]);
     }
 }