According to this answer, you can force the browser to download a resource instead of opening the resource.
However, it's not working for this link, which links to an Unsplash image:
<a id="dataFileLink" href="https://images.unsplash.com/photo-1556911164-1297abe8527c?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=634&q=80" download="24.txt" style="">Download File</a>
JSFiddle: https://jsfiddle.net/6cp95ude/
Clicking the link doesn't force a download of the image; it merely opens the image for viewing.