Finally updated indexed mode for X palette.