invoke the onResize method automatically when mounted

if a widget requires resize, it will automatically invoke the onResize
method when mounted as a root widget
remove no longer needed calls to onResize after mount
tweak the example simple image widget dom structure
simplify example styling