A few changes:
Correcting a bug with moving from webcam to a recorded video.
Removing some legacy code.
Cleaner and clearer underlayer correction.
Proper smooth mask computation.