protected function intermediateSizeSquare()
    {
        if ($this->canvas['height'] === $this->canvas['width']) {
            $this->intermediate['width'] = $this->canvas['width'];
            $this->intermediate['height'] = $this->canvas['height'];
        } else {
            if ($this->canvas['width'] > $this->canvas['height']) {
                $this->intermediate['width'] = $this->canvas['height'];
                $this->intermediate['height'] = $this->canvas['height'];
            } else {
                $this->intermediate['height'] = $this->canvas['width'];
                $this->intermediate['width'] = $this->canvas['width'];
            }
        }
    }