Add port of clipmask example