t('img');
      document.body.appendChild(img);
      img.onload = function() {
        resolve();
      };
      img.onerror = function() {
        reject(new Error());
      };
      if (cross_origin != '') {
        img.crossOrigin = cross_origin;
      }
      img.src = url;
    });
}
</script>
