Depending on your data you might want to use another lib, as e.g. slicing and saving medical images might be easier using some other libraries.
Could you explain your dataset a bit so that we could check which approach might be the easiest?