l").modal('show');
      });
    }

    function updateImage(){
      fingerprint = editedImage
      var updatedJSON = $("#jsonInput").val();
      console.log("Info: updating image");
      $.post("{{ url_for('api') }}/images/update_image?id=" + serverId + "&project=" + project + "&fingerprint=" + encodeURI(fingerprint), { json: updatedJSON },  function (data) {
        console.log(data);
        if (data.error_code >= 400){
          alert(data.error);
        }
        //Sync type
        setTimeout(() 