Added simple rgb histogram generator, changed data object to have 'average' and 'hist'