conditional compilation on USE_HISTOGRAMS for histogram collection and rendering