write lines to image to test