Added conversion function to heatmap that returns an Image.