Contempt case: Imran Khan apologizes before IHC