Removed unused variables
Implemented texture importing with other palette