Downgrade Pillow to 2.2.2, because 2.3.0 introduces a bug in https://github.com/python-imaging/Pillow/commit/06301c9eba3904acf8a9b7b707caa71ba7b6a0d3 where converting from paletted to RGB and back breaks the palette