add method centerOrigin to Sprite and AtlasSprite

can someone please check that AtlasSprite.centerOrigin looks correct?