Scratch Example
{{ with $.Site.Params.imagespath }} {{ $.Scratch.Set "path" ( . ) }} {{ else }}{{ $.Scratch.Set "path" "/images/" }}{{ end }}
<div class="box box--column box--image">
<img src="{{ $.Scratch.Get "path" }}{{ .Get "filename" }}" />
</div>