files[0];
        fileReader = new FileReader();
        fileReader.onload = function(e){
          document.getElementById("photo").src = e.target.result;
          document.getElementById("photoRaw").src = e.target.result;
        };
        fileReader.onerror = function () {
          console.warn('oops, something went wrong.');
        };
        fileReader.readAsDataURL(file);
      }

      function isMobile(){
        return "ontouchstart" in document.documentElement;
      }

      const mobilePersp