Start of support for drawing the square overlays