Mahalanobis Distance Between Two Images