search image using histogram