pub async fn download_image( dir: &String, url: &String, client: &Client) -> Result<(String, String, u128, Bytes), Box<dyn Error>>