Fixed great circle wrapping issues. Fixed PIL on OSX 10.9 issue.