Improved WriteableBitmapConverter.ToMat performance