Implemented draw masking