Routine to compute SSIM for 1 image, for a bunch of specific images and for a general bunch of images