All perfect praise be to Allah, The Lord of the worlds. I testify that there is none worthy of worship except Allah and that Muhammad,
, is His slave and Messenger.
As long as the contract between you and the company was about doing a particular job that is permissible, as you mentioned, designing cellular online banner ads, then you are not obliged to do any work or designs other than this.
As regards the forbidden designs, it is not permissible at all to do them, even if this requires terminating the contract with the company, and there is no harm on you in invalidating it.
The fact that it is a condition to give a two-month notice to invalidate the contract, then either they give you the permissible work that was agreed upon during the two months, or it is they who are breaching the contract.
This is not considered breaching the contract on your part.
Allah knows best.