This paper studies the focusing properties of a two-dimensional photonic crystal (PC) slab consisting of a triangular lattice of metallic cylinders immersed in a dielectric background. Through the analysis of the equifrequency-surface contours and the field patterns of a point source placed in the vicinity of the PC slab, it finds that both the image distance and image quality can be controlled by simply adjusting the refractive index of the background material.