Added update corners call to resize rectangle functions