Detector now takes opts object, added detectObjects option