Library: fix WebGL texImage2D binding