acheImage(imageId, { loader: request }).then(function (image) {
                console.log(image);
                var viewport = cornerstone.getDefaultViewportForImage(element, image);
                // document.getElementById('toggleModalityLUT').checked = (viewport.modalityLUT !== undefined);
                // document.getElementById('toggleVOILUT').checked = (viewport.voiLUT !== undefined);
                cornerstone.displayImage(element, image, viewport);
                if (loaded === false) {
   