Remove checking for width and height attributes, to reduce overheads in IE