Added a function to revert the history of all open documents after exporting thumbnails.