Automatically genearting thumbnails for all images.