Added thumbnail class to images