Can you move this code to `routes/api/image.js` or something along those lines? It shouldn't be in server.js, if it's possible to move it out there.