Strips repeated bytes at end of each jpg files