Changed the buildslice image method. If cTsdf isnan, the corresponding
pixel is painted green.