support uchar and ushort gmic images