spectral seeds: fix out of bounds when accessing the image