protected function renderSlide($slideConfig = [])
    {
        $imageOptions = ArrayHelper::getValue($slideConfig, 'image', []);
        $imageSrc = ArrayHelper::remove($imageOptions, 'src', null);
        if (!$imageSrc) {
            return '';
        }

        $caption = $this->renderCaption(ArrayHelper::getValue($slideConfig, 'caption', false));
        $options = ArrayHelper::getValue($slideConfig, 'options', []);
        $options = ArrayHelper::merge($this->slideOptions, $options);

        $html[] = Html::beginTag('li', $options);
        $html[] = Html::img($imageSrc, $imageOptions);
        $html[] = $caption;
        $html[] = Html::endTag('li');
        return implode("\n", $html);
    }