When a file is downloaded, the mime type is now determined and used. This means it should support more than just JPEG now.