depth input changed to pixels rather than total images in targeImg width