get thumbnail method.