got test.c to work reliably for a color image; now need to modify test-capture-c.c to work better