--- 'astro': patch --- Improves type-checking and error handling to catch case where an image import is passed directly to `getImage()`