For CentOS:

    yum install python-imaging