protected function generateHtmlOutput(ResourceSettings $image): string
    {
        $str = <<<'IMAGESTR'
<img src="{{url}}" alt="{{alt}}" {{title}} {{width}} {{height}} {{class}} {{id}} {{cors}} {{extra}} />
IMAGESTR;

        return Str::format($str, [
            'url'       => $image->url,
            'alt'       => e($image->alt),
            'title'     => $image->title !== null ? 'title="' . e($image->title) . '"' : null,
            'width'     => $image->width !== null ? 'width="' . e($image->width) . '"' : null,
            'height'    => $image->height !== null ? 'height="' . e($image->height) . '"' : null,
            'class'     => $image->class !== null ? 'class="' . e($image->class) . '"' : null,
            'id'        => $image->id !== null ? 'id="' . e($image->id) . '"' : null,
            'cors'      => $image->crossorigin !== null ? 'crossorigin="' . e($image->crossorigin) . '"' : null,
            'extra'     => $this->createResourceOutput($image->extra),
        ]);
    }