Simple thumbail script in python