Mask and pading generator