We don't need to do this yet, but when we do, here is important guidance on how to update Astro's handling of image files, if we update the version of Astro on GitHub. The changes are small but significant for the astro layout pages.
https://docs.astro.build/en/guides/upgrade-to/v3/#removed-astrojsimage