OpenCV handling mouse events