Fixed the routes for uploading images