fixed resizing of imagewidget