added converters for GIMat and GMat