function loadImageUrl(src) {
  return new Promise(doLoadImageUrl);
  function doLoadImageUrl(resolve, reject) {
    // Request and load texture from src string. THREE will create underlying element.
    ImageLoader.load(src, resolveSource, function () {/* no-op */}, function (xhr) {
      error('`$s` could not be fetched (Error code: %s; Response: %s)', xhr.status, xhr.statusText);
    });
    function resolveSource(data) {
      resolve(new three__WEBPACK_IMPORTED_MODULE_3__.Source(data));
    }
  }
}
Load image from a given URL.

@private
@param {string} src - An url to an image file.
@returns {Promise} Resolves once texture is loaded.