Added trim capability to pillow_adapter
Make tests/all.py work again