Code tweaks and small improvements (ref #7)
Improve performances by using histogram instead of pixels array for initial vbox computing (ref #7)