Approximate Inference for Constructing Astronomical Catalogs from Images