draw saliency
port to C++