Add @synchronized when drawing corners