Added support for tilemap undo