IE9 and IE8 loading image set a width
    var img_src="/xxx.jpg";
    var img = new Image();
    img.src = img_src;
     //img.height=height;
     img.width=200;
     img.removeAttribute('height');

The Image is loading with default size in IE8 and IE9 and i have checked it in google chrome and firefox it is working fine.
IE9 and IE8 loading image set a width
===

    var img_src="/xxx.jpg";
    var img = new Image();
    img.src = img_src;
     //img.height=height;
     img.width=200;
     img.removeAttribute('height');

The Image is loading with default size in IE8 and IE9 and i have checked it in google chrome and firefox it is working fine.