added 'alignPivot' method to DisplayObject class (closes #293)