cinepak: add grayscale and palette output modes