The URL has to point directly to an image. When you open it in its own tab, it should be just the image with no website around it.
This usually means that the URL should end in .png, .jpeg, .jpg, .gif or similar.
You can use imgur to upload a picture, then right click and choose "copy image link" or your browser's equivalent.
A preview will appear below if the URL will work.