<figure class="md-img {{ with .Text }}with-text{{ end }}">
    <img src="{{ .Destination | safeURL }}" alt="{{ .Text }}" {{ with .Title }} title="{{ . }}"{{ end }} loading="lazy" />
    {{ with .Text }}<figcaption class="md-img-text">{{ . }}</figcaption>{{ end }}
</figure>