Then select Edit > Copy from the menu bar. If you are using an image from your computer, you can open it in Preview. If you are using an image from the web, it can be as simple as right-clicking it and selecting Copy Image from the context menu. Here's how to customize folder icons on Mac.
Frequently Asked Questions Can i customize my mac folder icons?