Fix line drawing on graphics