Debugged HeatMap.DoDrawing() function.