updated g2d api; fixed path fill & stroke to preserve path in context