Fixed performance issue in alternate colorspaces
Originally this would convert each pixel in the mask, making large brushes very slow. Now it converts
the cached gradient colors instead, which speeds up the brushes enormously (to where there's no
noticeable slowdown).