An entropy based approach for SSIM speed up