The picture wasn't the only evidence.
It also was not a criminal trial and in fact it wasn't Swift who sued first. She ejected him and banned him from the event then told his employer why. He got fired. He then tried to cash in by suing her for $3mil, she countersued for $1.
As a result it was a balance of probability case, not proof beyond a reasonable doubt. The jury ruled for who was more believable.
His story is that photo shows him grabbing her ribs but his hand is clearly lower than that so he's lying about what he's doing, and it's the evidence he's lying the caused him to lose.
He also repeatedly changed his story, made up another person to blame it on, and destroyed evidence. That made Swift now credible than him so she won the he said she said on the balance is probability