how to remove WIDTH and HEIGHT from img-tag in Drupal 8 Does anybody know how to remove width and height?

&lt;img src="/sites/default/files/styles/large/public/2016-03/
dummy-640x480.jpg?itok=9_RdHYGq" alt="mein dummie" typeof="foaf:Image"
class="img-responsive" width="480" height="360"&gt;


I want that the img tag looks like this

&lt;img src="/sites/default/files/styles/large/public/2016-03/
dummy-640x480.jpg?itok=9_RdHYGq" alt="mein dummie" typeof="foaf:Image" 
class="img-responsive"&gt;
In your theme open file THEMENAME.theme, example in my case THEMENAME is bartik and file is bartik.theme add code below:

function bartik_preprocess_image(&amp;$variables) {
  if (isset($variables['attributes']['width']) &amp;&amp; isset($variables['attributes']['height'])) {
    unset($variables['attributes']['width']);
    unset($variables['attributes']['height']);
  }
}


Clear all cache and see result.