A man who became a global internet hit after getting his head stuck in a bin has admitted assaulting a police officer.
William Middleton, 52, hit the headlines after his head got wedged in a street bin while apparently searching for his hat in Aberdeen city centre last year.
A passer-by took a photograph of Middleton and it quickly went viral with tens of thousands of people sharing around the world, earning him the sobriquet Bucket Heid.
Firefighters had to be called out in to help free him with electric saws when the drama unfolded back in September.
On Wednesday at Aberdeen Sheriff Court, Middleton, of Wernham House, admitted assaulting a police officer in the city's Primark store on Union Street last year.
As well as pleading guilty to punching the male officer to the body on November 7, he admitted failing to appear at the court on December 5.
Sheriff Graeme Napier described Middleton's record as "horrendous" and said he had a history of alcohol abuse.
Sentence was deferred until February 13.
He was released on bail and warned he would be remanded in custody if he failed to turn up.
Feedback: We want your feedback on our site. If you've got questions, spotted an inaccuracy or just want to share some ideas about our news service, please email us on email@example.com.
Download: The STV News app is Scotland's favourite and is available for iPhone from the Apple store and for Android from Google Play. Download it today and continue to enjoy STV News wherever you are.