switch getwidth/height to apptools