Argument parsing, paths checking and other code that do not relate to image slicing