create thumbnails

http://www.webgeekly.com/tutorials/php/how-to-create-an-image-thumbnail-
on-the-fly-using-php
add thumbnails to output if you wish