Made resizing center