A new technique uses a single image to forecast — and maximize — the energy a solar panel will produce over a year.