Now it won't crash if the user doesn't allow to use the camera