Better offset formula for heatmap Issue #144