Fix invert_framewritter

If previous capture has been interrupted in the middle of writing
a frame, reset the size of the previous current line.