loadImage = function (src) {
        return new Promise((resolve, reject) => {
          const img = new Image();
          img.addEventListener('load', () => resolve(img));
          img.addEventListener('error', () => reject(new Error('load failed')));
          img.src = src;
        });
      }
@type {Promise<import('../../../../src/ol/DataTile.js').Data>}