Cleaned up lingering texture code