fixed bug in visionbase ImgToHisto