fixed error where setNeedsDisplay needs to be on the main queue along with an example with the fix
Merge pull request #11 from xuan/master

Make sure setNeedsDisplay is called from the main thread.