thumbnail functioanlity added