move template to separated file; fix bug with img src
fixed #5