Use a set of texture numbers, rather than a list.

This makes it easier to deallocate textures, an eventual goal.