Medford MA Police Department Union President Harold MacGilveray on the right, found @HillaryClinton & arrested her. @realDonaldTrump #MAGA pic.twitter.com/2fjap0kFpu — Rep Al Baldasaro (@Al_Baldasaro) October 29, 2016

The president of a Medford police union said he used “poor judgment” when he posed for a photograph with a person dressed in a Hillary Clinton orange prison-inspired costume that went viral on social media.

Harold MacGilvray of the Medford Police Patrolmen’s Association said the photo was taken spontaneously during a community festival on Saturday afternoon and was “absolutely not” taken to make a political statement.

Read the complete story at BostonGlobe.com.

Don’t have a Globe subscription? Boston.com readers get a 2-week free trial.