add thumbnail attribute