{% load wagtailimages_tags %} {% if pagetype.image %} {% image pagetype.image width-98 as tmp_photo_small %} {% image pagetype.image width-320 as tmp_photo_large %}