There is the letter of the law and the spirit of the law. If this was happening for just a few moments, this is so sad! And yes creepy that someone had a camera ready so soon. Some people are just haters. Hope the judge will have more compassion.
Something like this recently happened to my neighbor. He too is very good about keeping his dog on leash. He thought the leash was hooked to his dog's collar, but he missed. The dog ran loose for probably less than a minute, but in that time barked at his neighbor's dog who was on a upstairs balcony. The upstairs dog owner called the police. My neighbor Tim, is one of the most honest persons I ever met, so of course he admitted to the police his dog got loose and they gave him a $50 ticket.