A pervert who performed a sex act at his living room window so passers-by could see has been put behind bars.
Carl Rowe had just completed a sex offenders treatment programme for bizarre sexual behaviour towards women at bus stops when he put on the shocking display.
Newcastle Crown Court heard in May 2014 the 45-year-old had been given a suspended prison term for rubbing his genital area while standing close to women waiting for buses outside Joplings store in Sunderland.
He received a caution for similar behaviour in 2006.
In March this year, while still subjected to the suspended jail sentence, Rowe stood at the living room window at his home in Eglinton Street North in the city, naked and performing a sexual act on himself.
His indecent activity was seen by a young girl, who told her mother what she saw.
Prosecutor Bridie Smurthwaite told the court: "The mother, about 10 minutes later, went back to check.
"She stood across from the defendant's address and saw him standing in the centre of the downstairs window, curtain back, light on, completely naked."
The court heard the worried mother took a picture on her mobile phone to prove to the police what she saw, which prompted Rowe to move behind the curtain out of sight.
Rowe initially claimed he had been simply exercising but pleaded guilty to exposure.
Miss Smurthwaite said the young girl and her mother were shocked and shaken by what they saw.
Judge Tim Gittins sentenced Rowe to five months behind bars and said he must sign the sex offenders register for seven years.
The judge said: "I am satisfied you were naked and masturbating so that anyone passing by would see you.
"You were there for all to see.
"It is clear from the pre-sentence report you are a high risk of further offending, given that the treatment programme you have been through has failed to prevent you committing this offence.
"This was an offence where you have been given an opportunity and failed to take it, an offence committed in the presence of a young, vulnerable girl."
Vic Laffey, defending, said Rowe has problems with "isolation and loneliness".
Mr Laffey said Rowe comes from a very supportive family, who are supportive of him and have allowed him to move back home since the offence.