Use supplied RGB mask and offset rather than fixed.