now supports pillow as well as PIL