Add rectangle masking stuff