change pil format