Cocoa Application: Color Targeting Algorithm