fixing the thumbnail to be used