{% load cms_tags easy_thumbnails_tags %}{% spaceless %}
    {% if instance.rel_image %}
        {% if instance.subject_location_available %}
            {% thumbnail instance.rel_image options.size crop=options.crop upscale=options.upscale subject_location=instance.rel_image.subject_location as thumbnail %}
        {% else %}
            {% thumbnail instance.rel_image options.size crop=options.crop upscale=options.upscale as thumbnail %}
        {% endif %}
        <img class="d-block w-100" src="{{ thumbnail.url }}" alt="{{ instance.rel_image.default_alt_text|default:'' }}" >
    {% else %}
        <div class="placeholder placeholder-wave d-block w-100"
            style="aspect-ratio: {{ aspect_ratio }}"></div>
    {% endif %}{% endspaceless %}
