Sets the file to download as preview when the image to download is a JPEG/PNG/GIF
Refactoring