These pictures show the damage caused in a crash in which a judge said it was a 'miracle nobody was killed'.

Patrick Williams, of Robin Gardens, Cheselbourne, Dorset, pleaded guilty on Monday to driving dangerously on the A433 between Tetbury and Cirencester.

His blue Peugeot skidded before rolling, flying through the air and narrowly missing the Musty family, who were taking their 17-year-old son on a driving lesson.

Cotswold Journal: Patrick Williams' car

Investigating officer PC Tim Griffiths said: "The Musty family are incredibly lucky to be alive today. They were literally inches away from being killed or very seriously hurt.

"Surprisingly the only visible damage to the Musty's Corsa was the chunks that were taken out of the alloy wheel, blue paint transfer from the glancing blow, dents from flying debris, a spare wheel and a six inch bolt that had been in the boot. The car was also sprayed with fluids from the Peugeot as well as grass and mud.

Cotswold Journal: The victims' car

“I’d like to thank all of the witnesses who helped with our investigation as their comprehensive accounts of what happened have resulted in a successful prosecution and ultimately a guilty plea to all charges.

Andrew Musty recalled how he felt that his family were within seconds of losing their lives when the crash happened.

He added: “My 17-year-old son was a learner driver and his quick reactions saved our lives; if he hadn’t swerved onto the verge, Williams' blue Peugeot would have crashed through our front windscreen as it flew through the air, and my son and my wife in the back of the car would probably have been killed.

Cotswold Journal: Patrick Williams' car

"Immediately after the impact, I turned my head expecting to see my son motionless and covered in blood, but by some miracle Williams' flying car somehow skimmed us leaving only blue paint marks, scratches, and bullet-shaped dents from the flying debris, and my son escaped unscathed.

"This was a traumatic experience for all of us, and the flashbacks and nightmares are a constant reminder of how lucky we are to have survived."

READ MORE: 'Miracle nobody was killed' after dangerous driver crashed in the Cotswolds