fix palette.Size()

moved min color count logic from RgbEffects to PaletteClass