Bring back Pillow dependency; install libjpeg-dev

* PIL package from python-imaging does not support JPEG formats,
  so we need to install libjpeg-dev and then compile Pillow to get
  JPEG support in PIL