Compares an image to a reconstructed image and returns the specified distortion
   metric.