I recovered a lot of beloved photos from a drive which previously had XP and on which I installed Ubuntu with the recovery program foremost.

Many images show a thumbnail preview of the entire image, but when opened in an image viewer show only a part of the image and sometimes some colored lines. Since a thumbnail was generated, the images are obviously somewhat salvageable. What can I use to save them?