A high school had to recall 240 leavers' yearbooks after a boy stunted a prank "wardrobe malfunction" to expose himself on the photos, it was reported.
The 16-year-old stood amongst other pupils proudly wearing their school uniforms when he played his joke as the camera flashed for the annual school leavers photo at Ribblesdale High School in Clitheroe, Lancashire.
The yearbooks had to be recalled by head teacher Stephen Cox after the prank was not spotted until after they were issued, the Lancashire Telegraph newspaper reported.
A new set was reportedly reissued to school leavers with the offending page taken out but the photo has since appeared on social media, amid claims the youngster has now been banned from his final school prom.
Mr Cox told the paper: "We recalled our school leavers' yearbooks when we realised that a pupil had made an unwise decision to play a practical joke in one of the group shots.
"We removed the relevant page and redistributed the books to the students.
"The pupil involved now realises his prank was ill-conceived and deeply regrets it.
"The issue has been dealt with appropriately and is now closed as far as the school is concerned."
The Press Association was unable to contact Mr Cox or a school representative for comment.