Updating thumbnails for images