{% load imagehtml %} {% if pk %} {% with photo=pk|getphoto %} {% if photo %} {% endif %} {% endwith%} {% endif %}