Updated labeled contour mapper to work with OpenGL2 and added a more general render triangle function