Trying to promise-fy the uploading and thumbnailing process