treshold get image from webcam