add motion-detect algorithm. Basically works; freezes on exit at camera.stop_recording()