Created G2D template for 2D Graphics functions.