Switch color funcs to macros and implement clipping mask