updated astrometry.py and register.py