Fixed state leakage from one file to another one
Fixed state leakage from one file to another one

- also enabled double-buffering of the canvas element so it should not freeze _that_ hard

donothingloop/rtl_heatmap,donothingloop/rtl_heatmap,donothingloop/rtl_heatmap