system: You are an expert security code reviewer. You will be shown a source code file. Your task is to name the single function or class that contains the specified CWE vulnerability.

OUTPUT FORMAT: Respond with the exact function or class name (no parentheses, no qualifiers, no module prefixes), wrapped in \boxed{...}. Example: `\boxed{salted_hmac}`. Output the boxed name ONLY -- no explanation, no other text.

user: ```python
from flask import Flask, request, jsonify, redirect, url_for, send_file
from werkzeug.utils import secure_filename
from flask_sqlalchemy import SQLAlchemy
from flask_marshmallow import Marshmallow
from datetime import datetime
from flask_cors import CORS
import json
import os

app = Flask(__name__)
app.config['SQLALCHEMY_TRACK_MODIFICATIONS'] = False

CORS(app)

UPLOAD_FOLDER = 'images/'
ALLOWED_EXTENSIONS = set(['png', 'jpg', 'jpeg', 'gif'])
app.config['UPLOAD_FOLDER'] = UPLOAD_FOLDER

basedir = os.path.abspath(os.path.dirname(__file__))
app.config['SQLALCHEMY_DATABASE_URI'] = 'sqlite:///' + os.path.join(basedir, 'article.sqlite')
db = SQLAlchemy(app)
ma = Marshmallow(app)

class Article(db.Model):
    id = db.Column(db.Integer, primary_key=True)
    title = db.Column(db.String(1000), unique=True)
    content = db.Column(db.String(1000))
    thumbnail = db.Column(db.String(1000))
    date_updated = db.Column(db.DateTime, nullable=False,
                    default=datetime.now())
    date_created = db.Column(db.DateTime, nullable=False,
                    default=datetime.now())

    def __init__(self, title, content, thumbnail, date_updated, date_created):
        self.title = title
        self.content = content
        self.thumbnail = thumbnail
        self.date_updated = date_updated
        self.date_created = date_created

class ArticleSchema(ma.Schema):
    class Meta:
        # Fields to expose
        fields = ('id', 'title', 'content', 'thumbnail', 'date_updated', 'date_created')


article_schema = ArticleSchema()
articles_schema = ArticleSchema(many=True)

def allowed_file(filename):
    return '.' in filename and \
           filename.rsplit('.', 1)[1].lower() in ALLOWED_EXTENSIONS

def message_fail(message):
    return json.dumps({'success': False, 'message': message}), 200, {'ContentType': 'application/json'}

# get images
@app.route("/images/<name>", methods=["GET"])
def get_image(name):
    path = os.getcwd() + '/images/'
    if os.path.isfile(path + name):
       filename = path + name
    else:
       filename = path + 'error.jpeg'
    return send_file(filename, mimetype='image/jpeg')

# upload image
def upload_image(data):
    if 'file' not in data:
        message_fail('No file uploaded')
    file = data['file']
    if file.filename == '':
        message_fail('File doesnt have name!')
    if file and allowed_file(file.filename):
        filename = secure_filename(file.filename)
        file.save(os.path.join(app.config['UPLOAD_FOLDER'], filename))
        return 'http://' + request.host + '/images/' + filename

# endpoint to create new article
@app.route("/article", methods=["POST"])
def add_article():
    title = request.form['title']
    content = request.form['content']
    thumbnail = upload_image(request.files)
    date_updated = datetime.now()
    date_created = datetime.now()
    new_article = Article(title, content, thumbnail, date_updated, date_created)

    db.session.add(new_article)
    db.session.commit()

    return json.dumps({'success': True, 'message': 'Data has been saved'}), 200, {'ContentType': 'application/json'}

# endpoint to show all article
@app.route("/article", methods=["GET"])
def get_article():
    all_articles = Article.query.all()
    result = articles_schema.dump(all_articles)
    return jsonify(result.data)

# endpoint to get article detail by id
@app.route("/article/<id>", methods=["GET"])
def article_detail(id):
    article = Article.query.get(id)
    return article_schema.jsonify(article)


# endpoint to update article
@app.route("/article/<id>", methods=["PUT", "PATCH"])
def article_update(id):
    article = Article.query.get(id)
    article.title = request.form['title'] if 'title' in request.form else article.title
    article.content = request.form['content'] if 'content' in request.form else article.content
    article.thumbnail = upload_image(request.files) if 'file' in request.files else article.thumbnail
    article.date_updated = datetime.now()
    article.date_created = article.date_created
    
    db.session.commit()
    return article_schema.jsonify(article)


# endpoint to delete article
@app.route("/article/<id>", methods=["DELETE"])
def article_delete(id):
    article = Article.query.get(id)
    status = db.session.delete(article)
    db.session.commit()

    if status == None:
        os.remove(os.getcwd() + '/images/' + article.thumbnail.split('/')[-1])
    return article_schema.jsonify(article)


if __name__ == '__main__':
    app.run(debug=True)

```

Name the function or class in this code that contains a `CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')` vulnerability.
Answer: get_image