added option for continual histogram refreshing