added takeSnapshot and made detectPeople not require a Mutex