Optical and Near-Infrared Photometry of Distant Galaxy Clusters