fix image widget resizing