  // Start point...
        loadSrcImage("libjpeg/testimg.jpg");

        function loadSrcImage(imgUrl) {
          fetch(imgUrl)
            .then(response => response.arrayBuffer())
            .then(initImage)
            .then(createDisplayZone)
            .then(() => update(1));
        }

        function initImage(rawJpeg) {
          // the fetch response is an ArrayBuffer (not typed).
          // We create a typed array from it.
          let rawJpegAsTypedArray = new Uint8Array(rawJpeg);
       