Use a magnitude file name that references to the final image used as source.
Added a program option to use sextractor to detect objects for astrometry.