title: Apostrophe cms : widget html template check if image is set
body: <p>In Apostrophe CMS, how do you check if an image is set in the template? </p>
  
  <p>For example, if I have a "title" field, 
  <code>{% if data.widget.title %}</code> works fine.</p>
  
  <p>However, with image, set like this:
  <code>{{ apos.singleton(data.widget, 'image', 'apostrophe-images', {}) }}</code>
  The same pattern does not work as <code>data.widget.image</code> is always <code>[object][object]'</code></p>
  
  <p>I've done some reading and worked out that images are passed differently as they are part of <code>pieces</code> but cannot get it working. Any ideas?</p>