Wrapper for canvas 2D context to make use simpler and more efficient