code: function() {
          if (!this.url && !this.imgDiv) {
              // fast path out - if there is no tile url and no previous image
              this.isLoading = false;
              return;
          }
          this.events.triggerEvent('beforeload');
          this.layer.div.appendChild(this.getTile());
          this.events.triggerEvent(this._loadEvent);
          var img = this.getImage();
          var src = img.getAttribute('src') || '';
          if (this.url && OpenLayers.Util.isEquivalentUrl(src, this.url)) {
              this._loadTimeout = window.setTimeout(
                  OpenLayers.Function.bind(this.onImageLoad, this), 0
              );
          } else {
              this.stopLoading();
              if (this.crossOriginKeyword) {
                  img.removeAttribute("crossorigin");
              }
              OpenLayers.Event.observe(img, "load",
                  OpenLayers.Function.bind(this.onImageLoad, this)
              );
              OpenLayers.Event.observe(img, "error",
                  OpenLayers.Function.bind(this.onImageError, this)
              );
              this.imageReloadAttempts = 0;
              this.setImgSrc(this.url);
          }
      }
docs: Method: initImage
  Creates the content for the frame on the tile.