Extracted the Texture class to it's own files.