def move_image_to_attachment(content, attachment_object):
    intext_image_list = re.findall(find_image_scheme, content)
    if intext_image_list:
        content = re.sub(find_image_scheme, '', content)
        attachment_object += [{'type': 'Document', 'mediaType': 'image/jpeg', 'url': image[1], 'name': 'null'} for image in intext_image_list]
    return content
def move_image_to_attachment(content, attachment_object):
    intext_image_list = re.findall(find_image_scheme, content)
    if intext_image_list:
        content = re.sub(find_image_scheme, , content)
        attachment_object += [{'type': 'Document', 'mediaType': 'image/jpeg', 'url': image[1], 'name': 'null'} for image in intext_image_list]
    return content