Replace Image with pillow