fix pixels parameter of TexImage2D and TexSubImage2D
add helper to upload rgba, alpha and luminance textures