async fn build_avatar_file(context: &Context, path: &str) -> Result<String>