Optical and Near-Infrared Imaging of the IRAS 1 Jy Sample of Ultraluminous Infrared Galaxies. I. The Atlas