Rectangles stay in correct position when zooming in and out