Move uploadImage out of endpoints. Move /upload/img to /img.