Update ImgMatrix.cs