It'd have to be the headers in the actual JPEG image sent by the server; that might require that PHP streams the image content as zenphoto did in versions prior to 1.0.2, right now it just redirects, which I believe reloads the headers.
Not sure if there's a way, but if anything it'd be done in i.php