Added draw function with map as parameter to GpuCanvas, clarified some code and fixed error