clean up imports and logging. Add error if no face detection