removed unused code
implmenets thumbnail