add final callback that is called when all images are processed