Refactor texture methods in scene engine.