An antique portrait with dog captures the enduring bond between people and their canine companions across centuries of fine and folk art.