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
Change out hasAttribute for getAttribute for better backward support
Remove checking for width and height attributes, to reduce overheads in IE
Merge pull request #106 from davebeesley/master

Add temp fix for IE attribute issue