update load-image.js and tmpl.js

Signed-off-by: Donny Kurnia <donnykurnia@gmail.com>