Debug DahengImageCapture and add a test.