explore the use of SEP (sextractor) https://sep.readthedocs.io/en/v1.0.x/index.html for the source detection in the astrometry class.