fixed invalid picture format when convertering text to picture. Fix wrap for text without spaces. Fixed phantomjs timing problem