{% spaceless %}
  {% if instance.file %}
    <img src="{{ instance.file.url }}"
         alt="{% if instance.alt %}{{ instance.alt }}{% endif %}"
         class="svg"
         {% if instance.width %}width="{{ instance.width }}"{% endif %}
         {% if instance.height %}height="{{ instance.height }}"{% endif %}>
  {% endif %}
{% endspaceless %}
