use frame size for center