                     {%- assign w = v -%}
                    {%- elsif k == 'h' -%}
                        {%- assign h = v -%}
                    {%- endif -%}
                {%- endfor -%}
            {%- endif -%}
            {%- assign alt_text = img_src -%}
            {%- assign sizes_attr = '(max-width: 800px) 100vw, 800px' -%}
            {%- capture img_tag -%}
<img src="{{ img_src }}" alt="{{ alt_text }}" loading="lazy" decoding="async" sizes="{{ sizes_attr }}"{% if w != '' %} width="{{ w }}"{