added more efficient loadData for Texture for data from arrays