Added a 3rd canvas layer for the heat map. Working so far, but the color scale is off. Img data is kept in 8bit unsigned integer arrray, which is slow, but I think do-able.