Peter Whittingham says he has previously considered leaving Cardiff City, but is grateful he put his faith in manager Malky Mackay's vision for the club.