A CMOS Range Camera based on Single Photon Avalanche Diodes