bug fixes in nstar, better bad pixel fix in getpsf