Fix warnings from PIL