Fixed renaming for thumbnails