fixed resizing histogram