Added webcam frame grabbing and fixed bug in calibration program