add shift function to combineDepthImage