fix image widget autosize. Fixed #554