{% set displayOption = view.image.displayOption|default('top') %}
{# we write the image into a variable to and then place it at the correct position depending on displayOption #}
{% set image %}
{% set defaultFormat = '1380x' %}
{% set mobileFormat = '991x' %}
{% if displayOption in ['left', 'right'] %}
{% set defaultFormat = '400x' %}
{% set mobileFormat = '400x' %}
{% endif %}
<div class="block-image block-image__{{ displayOption }}">
{# @see https://github.com/sulu/web-twig/blob/v2.4.0/docs/image.md #}
{# get_image(content.image|default, defaultFormat, {
'(max-width: 991px)': mobileFormat,
}) #}
</div>
{% endset %}
{{ image }}
{% if displayOption == "top" %}
<img src="{{content.image.url}}" alt="" class="parallax w-100"/>
{% else %}
<img src="{{content.image.url}}" alt="" class="w-100"/>
{% endif %}