private static void RemapColors(IMagickImage image, IEnumerable <MagickColor> colors)
        {
            using (var images = new MagickImageCollection())
            {
                foreach (var color in colors)
                {
                    images.Add(new MagickImage(color, 1, 1));
                }

                using (IMagickImage colorMap = images.AppendHorizontally())
                {
                    image.Map(colorMap, new QuantizeSettings()
                    {
                        DitherMethod = DitherMethod.No
                    });
                }
            }
        }