texture working, just not with texture class