I'll need to first initialise `fill_front = mask - minimum(mask_ubyte, disk(1))` outside the loop and move the block of generating `fill_front` at the bottom of the loop. I doubt if that'll be better. I was doing `mask.any()` earlier, but I found this to be more effective.