modified kch.html and getKch.js for drawing image