Created some initial code. The functionality is almost there; sometimes, the wand misses the pixels of focus by clicking the centroid instead of the area of interest.