Maybe updating the Pillow to 4.1.1? We have realized that lower version on Pillow doesn’t work properly but if this is related to your issue, I really don’t know. Maybe you can at least try if you have pillow up to date. How with CentOS, I don’t know.