+findLocalMaxBrightness, todo: fix array access
sth was done here