Apparently NSColor's CGColor function is only in 10.8. Adding a really iffy 10.7 workaround
Merge branch 'master' into imageRep