Workers reverse proxy with Image handling

I have a reverse proxy running and trying to run image resize with it. It’s not working. Here’s what I’ve got so far:

  addEventListener('fetch', event => {
    event.respondWith(handleRequest(event.request))
    })
    async function handleRequest(request) {

    var url = new URL(request.url)
    url.hostname = "portofsubs.cname.meetsoci.com"
    const imageRequest = new Request(url, {
      headers: request.headers,
    })
    let options = {  
      cf: {
        image: {
          fit: "scale-down",
          width: 100,
          height: 100
        }
      }
    }
    request.cf = options.cf
    console.log(request.cf)
    // remove the first occurence of /blog
    // so it requests / of the proxy domain
    //url.pathname = url.pathname.replace('/locations', '')
    // pass the modified url back to the request,
    let response = await fetch(imageRequest, request)
    return response;
    }```