Getting somewhere. Made a pseudo rainbow image 81 x 81 pixels.
returns expected red colours of 204 and 199.
The blocks get the centre pixel for each of the "sections" of 9x9 pixels in the first column