Andy Murray risks being left red-faced after his fans spotted his 'twig and giggle berries' in an X-ray he posted online.

The two-time Wimbledon champion, 31, today revealed he had a 'hip resurfacing' procedure at a London clinic on Monday.

He posted a picture of himself in a hospital gown with a cannula coming out of his arm and a copy of his X-ray to share the news with his fans.

But Instagram users were quick to point out that the scan does not just show his bones - it revealed an image of his private parts too.

One person wrote: 'Wonder if any one realised you could see @andy_murray twig and giggle berries on the hip replacement x ray. anyway andy murrary wish you a speedy recovery.'

Another posted: 'Hey @andy_murray x rays don't just show bones my friend. No pun intended. please rethink your insta post.'

Andy Murray, 31, posted a picture of himself in a hospital gown with a cannula coming out of his arm and a copy of his X-ray to share news of his operation with his fans

When he posted a copy of his hip X-ray Instagram users were quick to point out that the scan does not just show his bones - it showed a reflection of his private parts too

Others were less discreet, with one writing: 'You can see the top of his d***!'

The original post read: 'I underwent a hip resurfacing surgery in London yesterday morning…feeling a bit battered and bruised just now but hopefully that will be the end of my hip pain.'

The Grand Slam champion was debating having the procedure, which involves putting a metal plate into the joint, in a final bid to prolong his career.

He confessed to being in crippling pain as he struggled to stay in his last tournament in Melbourne.

He had previously said ahead of the Australian Open earlier this month that he intended to retire after this year's Wimbledon.

He now faces a race against time to be fit for the championships, which start at the All-England Club on July 1.

Recovery from hip surgery takes around five months, giving him only a very slim chance of competing.

Medical experts say the operation does not guarantee a full comeback. But it will allow Murray to live pain-free and it could open the door to him becoming a tennis coach after he retires.

Murray had previously said ahead of the Australian Open earlier this month that he intended to retire after this year's Wimbledon

Murray was set for a farewell six months after emotionally announcing he was in too much pain to carry on in the build up to the first grand slam of the year.

After losing to Roberto Bautista-Agut in the first round of the Australian Open, he said: ‘Tonight was not comfortable in terms of my hip. At the end, I’m really struggling, I can’t walk properly at all just now.

'I could play another match, but if I want to try to play again, I want to improve my quality of life, because even if I take four months I still can’t walk. I’m still in pain doing just basic day-to-day things.’

But the monumental five-set tussle showed the Scot still has the ability and desire to compete at the top level, and he said he would do everything he could to keep playing.

Having the surgery, which happened in London on Monday, means he might not be fit to take part in Wimbledon this summer, where he had planned to say goodbye to the sport.

And if it does not allow him to return to the court, he will have played the last game of his glittering career.

In the lead up to his operation, he was in constant dialogue with American doubles specialist Bob Bryan, who has just returned to the game following the same procedure last summer.

Mr Bryan has said: ‘Seeing the way Andy Murray is feeling hit a nerve with me. I would love to see him do a similar surgery, feel the relief that it gives. I think our hips are pretty similar – just worn down, no cartilage.

‘I’m really the only guy to be playing on with a metal hip. So he’s been watching me like a hawk, asking me how I’m feeling after matches, after practices, where I’m at.’

Murray admitted being in pain during the Australian Open this month (pictured there)

A graphic shows how Murray's hip resurfacing procedure was carried out in hospital

Murray had his first hip operation in Australia in January last year. It was carried out by Dr John O’Donnell, who is regarded as one of the leading experts in hip arthroscopy.

Under a resurfacing procedure, damaged bone and cartilage inside a patient’s hip joint are removed and replaced with a metal ‘dome’ surface.

Typically patients spend two or three days in hospital and should be walking again soon afterwards.

The ATP Tour tweeted support for Murray, posting: ‘Yesterday Andy Murray underwent hip resurfacing surgery in London. Get well soon Andy, we know you will do everything to get back on tour!?’

British Tennis also sent out a tweet in support, saying: ‘Good luck in your recovery from hip resurfacing surgery Andy!’