A Playboy model who secretly took a photo of a naked 70-year-old woman in the locker room of a California gym, before sharing it on the Snapchat social media site. has pleaded guilty to invasion of privacy

Dani Mathers, who was voted 'Playmate of the Year' in 2015, was sentenced to 30 days community service — to be spent removing graffiti — and three years probation, the Los Angeles Times reports.

The 30-year-old published the image on her public Snapchat story last summer with the caption: “If I can't unsee this then you can't either”. It lead to accusations of body shaming.

But it soon became apparent she had also broken the law. It is illegal in California to secretly photograph another identifiable person in a changing room without their consent.

The offence carries a maximum sentence of up to six-months imprisonment and a $1,000 (£750) fine.

Shortly after the photograph was posted, the Los Angeles Police Department received a report of “illegal distribution” of the image and launched an investigation.

Initially the model pleaded not guilty, but her attorney, Dana Cole, told the LA Times she changed her mind.

“I think she wanted to be done with this and accept responsibility for what occurred,” he said.

Ms Mathers previously attempted to avoid jail time by offering to apologise to the victim, undergo counselling, and take an anti-bullying course. The judge declined, citing lack of remorse.

“She should face the consequences of her cruel and criminal act,“ the Los Angeles City attorney's office said at the time.

Ms Mathers was also banned from all LA Fitness gyms.

Most famous Playboy covers Show all 10 1 /10 Most famous Playboy covers Most famous Playboy covers December 1953 The very first Playboy magazine front cover with Marilyn Monroe Most famous Playboy covers July 1958 The bright yellow Playboy cover in summer of 1958 featured popular nude model Agnes Laurent Most famous Playboy covers August 1962 The shot of a woman posing on a beach in a bikini celebrated the first ever cover featuring bikini swimsuit Most famous Playboy covers May 1964 This cover featured Playmate of the year Donna Michelle who used her legs to recreate Playboy's famous rabbit logo Most famous Playboy covers August 1968 The cover of August 1968 edition featured Playmate Gale Olson with the famous Bunny logo covering her body Most famous Playboy covers October 1971 Darine Stern was the first black Playmate to feature on the cover of the magazine Most famous Playboy covers January 1985 The New Year cover in 1985 featured Goldie Hawn who was promoting her latest film Protocol Most famous Playboy covers July 1990 Sharon Stone was featured in the issue to promote her starring role in the upcoming movie Total Recall Most famous Playboy covers December 2007 Kim Kardashian appeared on the cover of the issue to promote the first season of the E! reality series Keeping Up with the Kardashians Most famous Playboy covers January 2014 The eagerly anticipated shot with Kate Moss in the famous bunny outfit celebrated the magazine's 60th anniversary

Shortly after posting the photo Ms Mathers claimed it was an “accident” and that she had meant to send it as a private message.

“It was absolutely wrong and not what I meant to do,” she said. “I chose to do what I do for a living because I love the female body, and I know body shaming is wrong.”

She later tweeted that she had “never body shamed a person in my life."

In a statement issued after Ms Mathers’ sentence, City Attorney Mike Feuer said the message was clear that “body shaming is not tolerated in the city of Los Angeles.”