working centering and scaling of skeleton