Follow-up on code review for renderThumbnail component

#2686