Fix imgwidget bug