program to recover jpeg files in c