Cleaned up texture wrapper

CTexture:
- removed unnecessary member numFramesX
- added unloading of texture
- added safe texture getter

CSprite:
- no longer inherits from CTexture, stores pointer to an instance
instead