Match the leaves with their shadows