Check if the user has accepted to use the webcam before taking a photo