@app.route('/getimages')
@track_requests
def get_image():
    k = {}
    j = 0
    for i in images:
        path_image = ('./userapp' + i)
        print(path_image)
        f = open(path_image, 'rb')
        stri = base64.b64encode(f.read())
        result = stri.decode('ASCII')
        k[i] = result
        j = (j + 1)
    images.clear()
    return k
@app.route('/getimages')
@track_requests
def get_image():
    k = {}
    j = 0
    for i in images:
        path_image = ('./userapp' + i)
        print(path_image)
        f = open(path_image, 'rb')
        stri = base64.b64encode(f.read())
        result = stri.decode('ASCII')
        k[i] = result
        j = (j + 1)
    images.clear()
    return k