Fix invert_framewritter

If previous capture has been interrupted in the middle of writing
a frame, reset the size of the previous current line.
Merge branch 'dev' of https://github.com/lano1106/glcs into dev