auto-invert image, and find cursor based on blob area