selection works with webcam - still, beware global variables and mouse callbacks