MagickNet is Converting The Color Space

Apr 13 at 3:45 PM
If an magickimage is built based on a full white png file which is in the color space of RGB/8 , and then if we write to HDD, the color space automatically converted to the Gray color space and the mode of picture in photoshop is changed to Bitmap.
As I tested it a lot I can say that it is related to the actual colors of the image, here in my case its is full white or full black.
I tested it with same image and add some color to it, then the color space is not changing.

how can I tell to MagickNet that I wanted to keep the color space. Even if I explicitly make the color space sRGB/RGB it converts it at write command to gray color space.
                var imageMagick = new MagickImage(path)
                imageMagick.ColorSpace = ColorSpace.sRGB;
                imageMagick.Write(newPath);
if you want to test it please create a full white PNG file and use it as an example.
Coordinator
Apr 15 at 12:31 PM
The PNG encoder requires and extra action for this. It normally tries to get the smallest file possible if you want to keep a 24/32 bit image you will need to do this:
imageMagick.Settings.Format = MagickFormat.Png24;
imageMagick.Write(newPath);