public function wrapAndRender()
    {
        // Get additional UI first so it can modify the normal form-group UI.
        $html = $this->renderEditor();

        // Add the aspect ratio choice
        $this->group->dataAspectRatio($this->ratio ?: false);

        // Set errors
        $this->showErrors();

        // Inform whether there is an existing image to preview
        if ($this->hasImage()) {
            $this->group->addClass('has-image');
        }

        // Add extra markup
        return $this->appendToGroup(parent::wrapAndRender(), $html);
    }