pub fn render_heatmap(
    img: &mut Image<Rgba>,
    filename: String,
    palette: String,
    invert: bool
) -> Result<()>