edit method readThumbnail