add updateData method
fix updateTexture (with offset and size)
fix sub textures