Preparing image thumbnails.