Relatives including Tia’s mum Natalie ran out in tears as jurors were shown the image, said to have been taken just hours after her death on August 3 last year.

Prosecutors claim Stuart Hazell, her grandmother Christine’s ex-partner, was attracted by Tia and murdered her after sexually assaulting her.

The court was told he put her body in a sheet, wrapped it in bin bags, sealed them with tape and hid her in the loft at the grandmother’s house.

Hazell later told a prison officer Tia had fallen down the stairs while they were playing and broke her neck.

Andrew Edis QC, prosecuting, told the Old Bailey trial that a sex toy with Tia’s blood on it was found at the home after she died.

He said to the jury: “Has the evidence made you sure Tia Sharp was murdered, or do you think it may have been an accident?

“What we know is that after she died he put her in the loft.

“That’s not what you would normally do with someone who has suffered an accident.

“If someone has an accident and you are concerned about their health, you call an ambulance.”

Warning them they would find some of the evidence “distressing”, Mr Edis said the loft had been inspected by police twice before Tia’s body was finally found.

“They only found it, I am afraid, because it had started to smell,” he said.

The court was also told that two memory cards were found in the house that contained “extensive pornography”, including two “grade one” images of under-age girls, and two “extreme images” featuring bestiality.

There were also 11 still images of Tia sleeping, and three video clips of her sleeping in her bedroom.

The alleged image of Tia lying dead on her bed with blood on the bedclothes was also shown to the jury.

Hazell’s bodily fluids were found on the bedclothes and on nightwear, the court was told.