code: function() {
          // erase any drawn elements
          this.erase();
  
          OpenLayers.Event.stopObservingElement(this.imageDiv.firstChild); 
          this.imageDiv.innerHTML = "";
          this.imageDiv = null;
      }
docs: Method: destroy
  Nullify references and remove event listeners to prevent circular
  references and memory leaks