{% load wagtailimages %} {% if image_a != image_b %} {% if image_a and image_b %} {# Image has changed #}