modify the way of loading texture