Fixed problem with pixel compression

Skip when no original N2D is found
Redesigned PaletteReducer algorithm

Still in progress. It can crash the program.