Test with hamming distance to iron out little differences in jpeg decoders.