element: HTMLImageElement; /* Defining element */ // ... this.element = document.createElement('img'); /*creating a img*/