def get_image(self, image_id: str = None):
        """
        Fetch image details by ID or validate an image URL.
        """
        try:
            image = self.collection.get_image(image_id)
            return {
                "id": image.id,
                "url": image.url,
                "name": image.name,
                "description": getattr(image, "description", None),
                "collection_id": image.collection_id,
            }
        except Exception as e:
            raise Exception(f"Failed to fetch image with ID {image_id}: {e}")

        Fetch image details by ID or validate an image URL.
        
backend/director/tools/videodb_tool.py