Succeeded in resizing the rects while keeping them centered.