Use Pillow to replace PIL