Switched to a subdomain but images in the site are not displaying

I changed my primary domain to a subdomain, and since then all the images in the subdomain are not displaying. When I did an Inspect Element I can see that the image is still linked to the primary domain's wp-content/uploads. How can I fix this? The primary domain is now being used in a different website, fyi.