Changed black frame detection to average-luma based. Lowered threshold.

Changed black frame detection to average-luma based. Lowered threshold. Tested it with a fake webcam and with an external webcam that I covered totally or partially with my finger. Worked as intended.

Also some minor things.
My comment was on the isBlackFrame.. but anyhow you replied on the specific comments below.Thanks,