issue #1086 fill holes before doing the distance transform, even if the user tells us not to do that