add flip flag to sprite