code: def _add_photo(self, card, name):
          
          try:
              photo_file = join(dirname(self._filename), 'photo/%s.jpeg' % name)
              jpeg = open(photo_file, 'rb').read()
              photo = card.add('photo')
              photo.type_param = 'jpeg'
              photo.encoding_param = 'b'
              photo.value = jpeg
          except IOError:
              pass
docs: Tries to load a photo and add it to the vCard