Detector.factory more tests
image_adapter_class is now used throughout