replace Thread with Timer for camera looper