Add statistic

Add hitogram and stats collecting.
Compare two images.