{% set height_limit = [asset.max_height_mm, report.image_height_limit_mm]|min if asset.max_height_mm is not none else report.image_height_limit_mm %}
{{ (asset.alt or asset.caption)|ui }}{% if asset.caption %}
{{ asset.caption|ui }}
{% endif %}