code: function (img, x, y) {
          this.addToImage(img, x, y); // add data of clone to snapshot
          if (++this.tilesLoaded == this.tilesAll) this.onLoadEnd(); // all clones of tiles are loaded
      }
docs: private