fix pillow test error