formatting of image thumbnails