Using images from a private gcr repository in another project

I am trying to use an image from a private repository of project A from a k8s cluster in project B. I have provided ‘Compute Image user’ role to both ‘Google APIs Service Agent’ account and ‘Compute Engine default service’ account of project B from project A’s IAM. Still when I try to create a deployment using an image in this private repository I get image pull errors. what could be the issue here?