ColorMatrix: fix outside-of-src bug