Implement copyTexImage2D and copyTexSubImage2D for
WebGLRenderingContext.