The easiest way of creating download link for image or html is setting download attribute, but this solution works in modern browsers only.