Typescript: Property 'src' does not exist on type 'HTMLElement' : <p>I get a error from Typescript and I am not sure how to correct it. The code works fine when "compiled" but I can't correct the error. I have extracted the parts that involve the error from my code. I guess I have to predifine the src but not sure how.</p>

<p>Error msg in Editor and on Gulp compile: </p>

<p><strong><em>"Property 'src' does not exist on type 'HTMLElement'.at line 53 col 17"</em></strong></p>

<pre><code>...

element:HTMLElement; /* Defining element */

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

'''
</code></pre>

<p>This is the method I run to render the element, position, top and left all works with out giving a error. </p>

<pre><code>display() {
   this.element.src = this.file; /*This is the line that gives the error*/
   this.element.style.position = "absolute";
   this.element.style.top = this.pointX.toString() + "px";
   this.element.style.left = this.pointY.toString() + "px";

   document.body.appendChild(this.element);
};
</code></pre>
