Fix an IE8 bug that messes up images