added thumbnail class to images.