I am having problems with layers and undo and it is easy to test for yourself.
Using one of the demo programs included with ImageEn I will show you how to replicate the problem. This is the same problem I have in my program. It seems like the layers get out of sync...
Have a look at this video I made to show the problem