- Updated cut_image.py to check for NoneType imageWriter - Prevents AttributeError when imageWriter is not provided
- Remove unused imports and functions across multiple files - Simplify code by deleting unnecessary comments and empty lines - Update function signatures to match actual usage - Replace redundant code with more efficient alternatives