Added undo redo for removing a figure on a canvas