{% if image_format.value == 'svg' and not image.endswith('.svg') %} {{- image.replace('svg ','svg class="img-responsive center-img"') }} {% else %} {% endif %} {% if caption %}