img.parentNode is null in IE10, viewed in IE8 Compatibility Mode