Using PIL library (Pillow)