In the present context, the Visualforce Page is launched from a custom Lightning action found on the record page of the Contact Object. The screenshot below shows the custom action being executed.
Upon clicking on an image's thumbnail, the Download Image hyperlink appears.
When clicking on the Download Image hyperlink, the image that is currently being viewed is downloaded.