Improve compatibility with other platforms

Improve compatibility with other platforms by removing apt and use
Pillow