Abstracts out a separate Avatar class to handle cursor interactions with the heatmap elements.