Fixed importing palettes that are smaller than 256 colors.