first version with center polygon blob detection
improved detection of center and cursor blobs
re-organized and added comments