ImageWindowIterator chooses between applyOnChunk and applyOnImage