code: def from_image(cls, image, partname):
          
          return ImagePart(partname, image.content_type, image.blob, image)
docs: Return an |ImagePart| instance newly created from *image* and
          assigned *partname*.