Make image tutorial plots work with Pillow