Added centering and rotation