That's a really good point. I think there's a high chance that the photos were taken from quite different locations because Hubble orbits the earth at 570km, whereas JWST is actually at the L2 Lagrangian point, which is about 1.5 million km away from Earth.