Visualisation of zoom rectangle; some minore refactoring