Attempt to make JPEG filter tests more reliable by adding some margin for lossiness