implemented masking w/ brush and rectangle