Separate code into library and facial recognition example to resolve #18.