Added .resize() to adapt canvas size

Needed a function to adapt the heatmap in case the canvas size changed.