make image download link work in firefox (closes #1404)