add thumbnail created function