revised handling of set palette defined (...) maxcolors N