<picture>
    {{#each picture.sources as |source|}}
        <source
                media="{{source.media}}"
            {{#if source.dimensions}}
                width="{{source.dimensions.width}}"
                height="{{source.dimensions.height}}"
            {{/if}}
            {{#if source.imageMimeType}}
                type="{{source.imageMimeType}}"
            {{/if}}
                srcset="{{source.srcsetUrls}}">
    {{/each}}
    <img loading="lazy"
         src="{{picture.img.src}}"
        {{#if picture.img.dimensions}}
         width="{{picture.img.dimensions.width}}"
         height="{{picture.img.dimensions.height}}"
        {{/if}}
         srcset="{{picture.img.srcset}}"
         alt="{{picture.img.alt}}">
</picture>