pixel selection using the mouse