Using new methods for loading texture in place of depricated