bugfix: image widget: make sure source is present

fixes #286