code: def new(cls, package, image):
          
          partname = package.next_image_partname(image.ext)
          return cls(
              partname, image.content_type, image.blob, package, image.filename
          )
docs: Return a new |ImagePart| instance containing *image*, which is an
          |Image| object.