{% load wagtailimages_tags %} {% spaceless %}
{% if self.align == 'full' %} {% image self.image original class="figure-img img-fill img-responsive" %} {% elif self.align == 'center' %} {% image self.image original class="figure-img img-fluid img-responsive" %} {% else %} {% image self.image width-400 class="figure-img img-fluid img-responsive" %} {% endif %} {% if self.caption|length %}
{{ self.caption }}
{% endif %} {% if self.credit|length %}
Credit: {{ self.credit }}
{% endif %}
{% endspaceless %}