Photoshop definitely got it right with the PSD file format. It saves the complete state of a still-being-edited image, so you can close down and resume work later.