{% if settings.image.src is not empty %}
	{% set id_attribute = settings._cssid is not empty ? 'id=' ~ settings._cssid | e('html_attr') : '' %}	
	{% set has_link = settings.link and settings.link.attributes is not empty %}
	{% if has_link %}
		<{{ settings.link.tag | e('html_tag') }}
			{{ settings.link.attributes | raw }}
			class="{{ base_styles['link-base'] }}"
			data-interaction-id="{{ interaction_id }}"
		>
	{% endif %}
	<img class="{{ base_styles['base'] }} {{ settings.classes | join(' ') }}" 
		{% if not settings.link.href %}
			data-interaction-id="{{ interaction_id }}" 
		{% endif %} 
		{{ id_attribute }} {{ settings.attributes | raw }}
		{% for attr, value in settings.image %}
			{% if attr == 'src' %}
				src="{{ value | e('full_url') }}"
			{% else %}
				{{ attr | e('html_attr') }}="{{ value }}"
			{% endif %}
		{% endfor %}
	/>
	{% if has_link %}
		</{{ settings.link.tag | e('html_tag') }}>
	{% endif %}
{% endif %}
