refactor: optimize PDF image splitting script - simplify path and filename handling - safely quote file paths - improve temporary directory management - remove redundant shell pipelines - simplify image batching - add error handling and progress output - document usage and processing steps