first pass at converting to context2d