switched to using tempfile module when downloading data in omero server