You need to look at the agreement you signed with your client before you did any work and make sure that they are not legally allowed to sell your work. In other words, they paid for it, they probably legally own it... and can do what they want with it, without your permission but every contract is different..