{% if filename %}
some text
more text!
{% else %}
no image for whatever reason
{% endif %}