Refactoring: Texture class created and warnings removed