If you are wanting to display content based on the user’s selected language, then you might have better luck using the request object. For example, you could use something like the following to display content for English users:
{% if request.locale.iso_code == 'en' %}
English content
{% endif %}
I inserted the code in the section liquids where I needed them. I also created some custom sections which I call in my page templates etc. So you need to find the respective section where you want to display your images.