code to render perspective labels