deleted CGColor category
Fixed bugs reported by Graham