A group of people in jackets and hats are kneeling outside posing for a picture, each one with their dog by them on a leash.
A group of people holding cats take a picture.
If they get picture with dog by them, they are not holding cats.
Cats and dogs are contradictory breeds. Taking a picture and posing for a picture refer to one performing the task and another being the reason (or part of the reason) for the task.
A group is either holding cats or are with their dog.