[image_view2] Use opencv c++ function to handle window