Documents:implemented thumbnail generation for texts with fpimage
Messagemanager:fix compiling