Estimate quality of JPEG images