fixed jpeg dependency using Pillow