replace PIL by pillow