There are no current use cases that rely on the element itself. All use cases use this function just to get the image's dimensions. I am unsure about the idea, but basically, if there is only the more specific use case, then the module should be specialized toward that one specific use case instead of the more general use case. That use case is just getting dimensions, so instead of returning an image element, consider returning a basic dimensions object (e.g. w and h props).
Positive: the abstraction is more directly targeted at its sole use case.
Negative: it is less flexible for future uses, sorta feels less composable.
There are no current use cases that rely on the element itself. All use cases use this function just to get the image's dimensions. I am unsure about the idea, but basically, if there is only the more specific use case, then the module should be specialized toward that one specific use case instead of the more general use case. That use case is just getting dimensions, so instead of returning an image element, consider returning a basic dimensions object (e.g. w and h props).