Added IdentifyImageType that returns the potential type of the image, GetImageType will no longer do this.
Added IdentifyPaletteImage that checks if the image  has 256 unique colors or less, IsPaletteImage will no longer do this.
Moved SetImageGray and SetImageMonochrome to colorspace.c
Renamed determineType to identifyType in Magick++
diff --git a/coders/svg.c b/coders/svg.c
index e8717ca..9cd1d6c 100644
--- a/coders/svg.c
+++ b/coders/svg.c
@@ -3444,7 +3444,8 @@
     */
     fitting_options=at_fitting_opts_new();
     output_options=at_output_opts_new();
-    type=GetImageType(image,exception);
+    (void) SetImageGray(image,exception);
+    type=GetImageType(image);
     number_planes=3;
     if ((type == BilevelType) || (type == GrayscaleType))
       number_planes=1;