write out line images