some refactoring, adding a webcam photo capture for new users