handle texImage2D with pixels === null