[ADDED] PSNR function