Put 2D canvas context in wrapper class