I currently have 2 image locations and they may the formats (jpg,jpeg,png,gif)
i.domain.com/simage.jpg thumbnail i.domain.com/image.jpg high quality i.domain
You just need to return HTTP header Content-disposition:
Content-disposition
location ~* /orig/(.+\.jpg)$ { add_header Content-disposition "attachment; filename=$1"; }