Fix problem with pillow, add debug line.