Automated quantification of bioluminescence images