protected function resampleCopy()
    {
        $result = imagecopyresampled($this->canvas['canvas'], $this->intermediate['copy'],
            $this->canvas['spacing']['x'], $this->canvas['spacing']['y'], 0 ,0,
            $this->intermediate['width'], $this->intermediate['height'], $this->source['width'],
            $this->source['height']);

        if($result === false) {
            throw new \Exception(Helper::ERROR_CALL_IMAGECOPYRESAMPLED);
        }
    }