render to temp file