Creating masks with nodes