<picture class="boldr-picture">
{% for type, sizes in image.types %}
{% if type != image.defaultType %}
{% set sizes = sizes|filter((v,k) => (k matches '/^\\d+$/') and (image.maximumSize is null or image.maximumSize >= k)) %}
{% if sizes|length > 0 %}
<source type="{{ type }}" srcset="{% for key, s in sizes %}{% if not loop.first %}, {% endif %}{{ image.absoluteUrl ? absolute_url(s) : s ~ ' ' ~ key ~ 'w' }}{% endfor %}" />
{% endif %}
{% endif %}
{% endfor %}
{% set sizes = image.types[image.defaultType]|filter((v,k) => (k matches '/^\\d+$/') and (image.maximumSize is null or image.maximumSize >= k)) %}
<img {{ not image.loadEagerly ? 'loading="lazy"' }}
src="{{ image.absoluteUrl ? absolute_url(sizes|first) : sizes|first }}"
alt="{{ image.description }}"
{% if sizes|length > 1 %}
srcset="{% for key, s in sizes %}{% if not loop.first %}, {% endif %}{{ image.absoluteUrl ? absolute_url(s) : s ~ ' ' ~ key ~ 'w' }}{% endfor %}"
{% endif %}
style="object-position: {{ image.alignmentX }} {{ image.alignmentY }}"
>
</picture>