Home prices post strongest annual gain in nearly 8 years