Add Upload class, image table refers to upload_id in upload table