added function to get brightest point, and a test