Extract diaglog mask