Added undo redo for filling a figure