A new approach to determine solar potential using terrestrial images