Add temp fix for IE attribute issue

A messy fix which removes the width and height attributes automatically added when img element is created in IE < 9