YES. You need to have the dog owner's permission to use the photo - especially to make $ off it or use it commercially.

Same is true for a person.