added thumbnail class for images