Basic validation of Jpeg file