If you measure the "Bounding rectangle" of the leaves, you get the desired x and y coordinates (as well as width and height). Just include this option in the "Set Measurements"-function.