Undoing in scripts
How to get effect of "ctrl + z" combination in script? Why do I need it? I need one image in a lot of sizes, so I want to resize it, save, restore to default, resize again etc. in loop (sizes are in array). I prefer not to close and reopen the same image. Thanks in advance and sorry for my english.