change image auth flow in ShareResource