Range imaging system utilizing nematic liquid crystal mask