added thumbnail attribute to api