Here is the source code I shared the easiest way of creating download link for image and any other files. The image and file directly stores in the users download folder if they click on download this file link. The download attribute allows user to give meaningful name to the files.
<a href="gallery/myimg23.10.2014.jpg" download="myimage.jpg">
<strong> Download this file</strong>