Fixed the image output filename to respect the HTTP spec

Filenames for files cannot contain a / or a \