Utility to calculate the PSNR between two images