Reorganise command-line entry-point
Refactor layout tests to reduce duplication
Improve pillow trim demo
Add pillow adapter