Use masks for capture generation