common.*: add common routine to eliminate palette from pixmap.