First tests on #524 (brighter/fatter):
* fixes indexing errors
* implements tests on geometrically simple images
All seems to be working so far.