def __init__(self, image=None):
    self.HEADER = {'Content-Type': 'application/x-www-form-urlencoded'}
    self.IMAGE_CONFIG = {}
    if (image is not None):
        imagepath = os.path.exists((LOCALHOST_PATH['PATH'] + image))
        if (imagepath == True):
            images = (LOCALHOST_PATH['PATH'] + image)
            with open(images, 'rb') as images:
                self.IMAGE_CONFIG['image'] = base64.b64encode(images.read())
def __init__(self, image=None):
    self.HEADER = {'Content-Type': 'application/x-www-form-urlencoded'}
    self.IMAGE_CONFIG = {}
    if (image is not None):
        imagepath = os.path.exists((LOCALHOST_PATH['PATH'] + image))
        if (imagepath == True):
            images = (LOCALHOST_PATH['PATH'] + image)
            with open(images, 'rb') as images:
                self.IMAGE_CONFIG['image'] = base64.b64encode(images.read())