use core graphics for lines