example boundary2: added image boundary check sample.