{% load commonblocks_tags wagtailimages_tags %}
{% if self.image.width > self.image.height %} {% image self.image width-800 class="img-responsive" alt=self.get_title %} {% else %} {% image self.image height-400 class="img-responsive" alt=self.get_title %} {% endif %} {% if self.caption %}
{{ self.caption|simplerichtext }}
{% endif %} {% if self.license_url %} {{ self.license_name }} {% endif %} {% if self.attribution %} {{ self.attribution }} {% endif %}