don't pixel_to_ppm if pixels == NULL