Add script to mask foreground