fix morph on non-uchar images