public function getPortraitFile($size)
    {
        if (strpos($this->filename, '/')) {
            $filename = str_replace('/', '/avatars/'.$size, $this->filename);
        } else {
            $filename = $this->component.'/avatars/'.$size.$this->filename;
        }

        return $filename;
    }