yId("captureViewer").style.display = "none";
            const pageData =  captureViewer.currentDocument.getPageData(e.pageUid);
            const raw = await pageData.raw();
            // Original image
            let url = URL.createObjectURL(raw.data);
            document.getElementById("photo").src = url;
            await loadImage(document.getElementById("photoRaw"), url);
            if (document.getElementById("enableEditing").checked) {
              let points = documentScanner.detect(document.