Moving all canvas operations to a canvas renderer class