Generalized the undo function to remove any specific action
Generalized the undo function to remove any specific action

This should be useful to remove old undesired paths

DDMAL/Pixel.js,DDMAL/Pixel.js,DDMAL/Pixel.js