fix row text

sometimes text would be printed above the whole picture
(if row number % GRIDTEXMOD == GRIDTEXTMOD - 1)
fix adjacend block optimization

avery block was one pixel too wide