Nailed down some versions and replaced the deprecated PIL library for Pillow