Resize image thumbnails.