{{#if this.isPopulated}}
{{else}}
{{#if @payload.beforeImage}} {{else}} {{/if}}
{{#if @payload.afterImage}} {{else}} {{/if}}
{{/if}} {{#if @payload.beforeImage}} {{/if}} {{#if @payload.afterImage}} {{/if}}
{{#if (or @isSelected (clean-basic-html @payload.caption))}} {{/if}}