{% macro imageComponent(data) %} {% set args = { "image" : {}, "type" : "container", "size" : "contain", "ratio" : "default", "add_overlay" : false, "overlay_color" : "light", "class" : '' } %} {% do args.update(data) %} {% if args.image.src %} {% set sizing = ['cover','contain'].count(args.size) ? args.size : 'cover' %}