get thumbnail function update