I have the following image (jpeg, 300x300)
With javascript i split it into a 10x10 grid of equal little squares, each of which is 30x30. First of all I invert