Undo portrait in various file formats