The color indexing transform shouldn't make single-channel images larger (by needlessly writing a palette). If there <= 16 colors in the single channel, it should make the image smaller.