Modular time-of-flight image sensor for light detection and ranging