update event handling and detect face while taking photo