Check the corruption of JPEG files