{% if image %}
<img class="{{ class }}" src="{{ source_url }}" alt="{{ title }}">
{% else %}
<video class="{{ class }}" controls>
    <span class="sr-only">{{ title }}</span>
    <source src="{{ source_url }}"></source>
    Your browser does not support the video tag.
</video>
{% endif %}
