thumbnails api function added