You can find the center of gravity of pixels using a simple formula, which is the sum of the x coordinates divided by the number of points and the sum of the y coordinates divided by the number of points (I mean white dots).
Then you can draw a circle centered at the center of gravity with the radial half of the maximum distance between the points.
.