We might want to consider a kwarg to select between `neighbors=4` and `neighbors=8`; Matlab has this option.