Fixed the undefined img width attribute for ie