title: Sitecore 8.1 MVC Glass Mapper v4 ImageField renders height and width attribute in Page Editor
body: <p>We're using GlassMapper 4.0.5.54 in Sitecore 8.1 Update 1 MVC. 
  The problem is, when rendering an ImageField, the height and width attributes are written in the img-tag - but only in Page Editor mode.</p>
  
  <p>We tried different approaches like</p>
  
  <pre><code>@Html.Glass().RenderImage(Model, x=&gt; x.ImageField, outputHeightWidth:false, isEditable:true, parameters:new {mw = 1218, mh = 530})
  
  @Html.Glass().Editable(x =&gt; x.ImageField, new { mw = 1218, mh = 530, width = (string)null, height = (string)null })
  </code></pre>
  
  <p>But we always get</p>
  
  <pre><code>&lt;img src="http://url_to_local_website/-/media/image_1218x530.jpg?h=530&amp;amp;la=en&amp;amp;mh=530&amp;amp;mw=1218&amp;amp;w=1216&amp;amp;hash=452505F9D5896956CB6B0F284755555217E62D8A" alt="Alt Text" width="1216" height="530" sc-part-of="field" class="scEnabledChrome"&gt;
  </code></pre>
  
  <p>So even when using the explicit parameter <code>outputHeightWidth:false</code> it outputs width and height attributes in Page Editor and distorts the image. Any suggestions? Or is it a bug?</p>
  
  <p>In a comment on <a href="http://www.glass.lu/Blog/ImageParameters" rel="noreferrer" title="Glass Mapper ImageParameters">Glass Mapper ImageParameters</a> someone else mentions the same behavior. But there is no answer to it.</p>