replace ImageMagick and PythonMagick with Python Imaging Library