User image to Discord Embed

I want the image that a user sends to be fetched and put into an embed that the bot will then send. As the image must be a url and the person sends an image, I don’t know how I can transform this image into a url.
When doing the command, the embed send but without the image. This is what i’ve tried but it didn’t work :

const plotEmbed = new Discord.MessageEmbed() 
                        .setTitle(`Purchase of the plot n°${plotId}`)
                        .setColor("GREEN")
                        .setDescription(`Purchase of plot ${plotId} for ${days} days.`)
                        .setImage(message.attachments.first.url)
                        .setTimestamp()
message.channel.send({ embeds: [pEmbed]})

If someone could get me an advice on what I should try because I don’t really know…
Thanks for reading.