Use Pillow instead of pgmagick for image resizing