Java tool for fixing incorrect JPEG header that are sometimes created by the Samsung Galaxy S2