Convert image for IE8 to base64