added capability to get the thumbnail