Webcam photo before doing quiz

I have been tinkering on a small enhancement to the quiz module in Moodle. One where you require the user to have their photo taken before they can start the quiz. The thought behind this being that you would want proof that the person who did the quiz, is the same person who enrolled for…