Little efficiency improvement in 3D case, deactivating unused offsets in ImageStencil