The ratio of the distance from the object to the lens to the distance from the image to the lens is the same as the ratio of the height of the object to the height of the image or, to the image of that object