optimized memory usage in updating texture content with texImage2D()