A thief was found with a machete after he was spotted riding a stolen moped while wearing a balaclava.
John Duncan, 24, a prisoner at Perth, was jailed at Dundee Sheriff Court after he admitted a string of offences.
He pleaded guilty to possessing a machete in Alloway Terrace on October 30, while on bail.
Duncan also admitted that he forced open a taxi and stole a satellite navigation system, a torch and a pouch containing £49.35 in Findhorn Street on October 29.
He further admitted that he stole a moped at Mossgiel Place and drove while disqualified and without insurance in Pitkerro Drive and Kerrystone Court on October 29 or 30, while on bail.
Duncan also admitted driving while disqualified and without insurance at Alloway Terrace and Pitkerro Drive on the same dates, while on bail.
Fiscal depute Eilidh Robertson told the court the owner of the taxi had secured his car outside his home around 9pm on October 29.
About two hours later, a neighbour heard a loud bang and looked out of her window.
She saw the accused, with a hood pulled over his head, using an implement to smash the windscreen of the taxi.
She decided to take a photograph and the accused was startled by the flash and fled from the area in a white car.
Police were called but Duncan was not traced at that time.
Around 3am on October 30, officers driving along Pitkerro Road spotted the accused riding towards them on a moped.
He wasn’t wearing a helmet but was wearing a balaclava and there was a bag over the handlebars.
The officers followed him but lost him in Kerrystone Court.
However, the sat nav system fell out of the bag and was identified as belonging to the taxi.
Duncan was traced the following day by police as he was driving a white Ford Fiesta in Alloway Terrace.
He drove into Pitkerro Drive where he stopped and attempted to run from the officers but he was caught after a short chase.
As he ran, he discarded a number of items including the pouch of money stolen from the taxi and a torch was found in his possession. A search of his car revealed the machete.
Sheriff Alastair Brown jailed Duncan for three years and two months.