correct SSIM formula