revert preset update due a oscp5 limitation
clean buffer if textwriter images is smaller than internal buffer
Textwriter, optimize buffer cleaning and prevent Exception