using line number in call to pixel on instead of working out an offset