Implemented search exported palette

Compare the original exported palette with a packed image to search the
texture palette used to export it.
Fixed bug importing textures with palette