Replace PIL by Pillow in misc. logging output