fix catalog reading; pull out metadata retrieval; add script to render DECam image model