Add anchor property to sprite object.