Test all buckets for inegal image
Fix inegal image handle. Output histogram
only take existing pixels for the result