update parent_thumbnail function