Fix corrupted images