Calculates the SSIM for each frame of video