Re-implemented texture restoring.