A man who was jailed for eight years for raping two women has had his convictions quashed by appeal judges.
Alan Clark, 40, was found guilty of raping the women and sexually abusing two others in Glasgow, Clydebank and Dumbarton between 2001 and 2012.
His lawyers claimed that trial judge Lord Carloway, Scotland's most senior judge, misdirected the jury.
Three appeal judges agreed and quashed the rape convictions. His sentence for the sex attacks will now be revised.
Lord Eassie sitting with Lady Smith and Lady Clark of Calton ruled that Clark had suffered a miscarriage of justice.
In a written judgement issued at the Court of Criminal Appeal in Edinburgh, the judges ordered Clark's convictions for rape to be quashed.
Lord Eassie wrote: "In these circumstances we have come to the conclusion that the jury were misdirected on a matter which was central to the position of the defence at trial and that we are unable to say that no miscarriage of justice may have occurred.
"We shall therefore allow the appeal against conviction."
Lord Eassie wrote that he and his fellow judges now wanted to be addressed by lawyers about what Clark's new sentence should be.
Clarke was jailed in 2014 after being convicted at the High Court in Edinburgh.
The court was told that Clark raped a woman in Dumbarton who had helped to teach him during a previous prison sentence.
He was also said to have raped a second woman in 2008 at a flat in the Bridgeton area of Glasgow.
Clark also threatened to petrol bomb a woman's home and committed acts of violence against a fourth woman.