You have to link the direct image (that ends in .png or .jpg), you linked the gallery, which is a webpage.
You'll have to right-click the image and click "Open image in new tab" and then paste it in the box, or you can click the "Insert other media" button above the submit button