Ding Junhui produced a spectacular escape when trapped behind the pink during his World Championship first round match with Jack Lisowski.