Use proper coordinates for line in pen