What's illegal about having a picture of yourself with a suspiciously foamy glass of pale ale? nothing.
But that's irrelevant. The point is that nobody was being prosecuted for holding a beer in a picture. It was used as evidence of a crime, not the crime itself.
I will add here my standard periodic reminder that I agree that this was a stupid waste of police time.