Fixed AutoTracer to test for grayscale images.