Resize thumb image in text editor

Auto resize for text editor