added animation support and center of rotation