How to Automagically Create Thumbnail Images Using Python