{% if editmode -%} {{ pimcore_image('image') }} {%- else -%} {%- set image = pimcore_image('image') -%} {% if thumbnail -%} {{ image.thumbnail('brick-' ~ brick.id ~ '-' ~ thumbnail).html({ 'disableAutoAlt': true, 'alt': get_image_i18n_alt(image, ''), 'pictureAttributes': { 'class': 'w-100 h-100 d-block user-select-none pointer-events-none' }, 'imgAttributes': { 'class': 'w-100 h-100 object-fit-cover', 'width': '100%', 'height': '100%', 'loading': 'eager' } }) | raw }} {%- else -%} {{ image | raw }} {%- endif -%} {%- endif -%}