Added option to create a histogram of brightness, creates formatted html with chart.js and haml