Minor sample fixes.
Improved image widget downcasting rules.