setting spp in a pretty ugly way
some more code for generating neighbourhood
started on getting pixel mean/std