Phase Referencing: Optimizing Imaging and Astrometric Results