minimap: tidy the transform code a bit, background color and zone dependent scaling