continued g2d context object implementation