switch PIL to Pillow