public function getAvatarUrl($size = 200) {
    $protocol = \Yii::$app->request->isSecureConnection ? 'https' : 'http';

    return $protocol . '://gravatar.com/avatar/' . $this->gravatar_id . '?s=' . $size;
  }