Implemented color masking