{% load thumbnail %} {% if record %} {% with image=record %} {% thumbnail image "70x70" upscale=False as thumb %} {{ image.url }} {% endthumbnail %} {% endwith %} {% else %} — {% endif %}