debugging CaptureImage