[PD] pix_write doesn't save the first image?