Switched Pil to the maintained Pillow. Removed unnecessary wsgiref