Also applying fixes to texImage2DHTML