Adding undo when deleting a tile's layer.