https://hackr.io/blog/python-projects/thumbnail/medium