Mask Synthesis