You must move this import into the function, because `skimage` is an optional dependency.