Add background renderer (checkerboard) using Cairo render.
Draw sharp one pixel bounding box in all cases.
Center the checkerboard with the focus of the canvas and draw always pixel aligned rectangles on the checkerboard.