extracting the thumbnail initial code