fix potential divide-by-zero issue (crashes when brightness changing quickly)
Merge branch 'master' of https://github.com/jbeale1/PiCam1