Restored previous texture functionality and completed the main portion of the refactoring.  Will now be able to implement textures whose dimensions are not powers of two and animated textures.