updated captureImage