Generic function to extract the spatial bounds (origin + dim * spacing) of an image param x the object
Useful links