This might help you:http://forum.blockland.us/index.php?topic=40574.0
The easier way is to create a "thumbs" folder (exactly named like that!) and put all the images in there... you dont need to resize them.