only convert for ncolors<=256