fix unvisiable counter image in template
Fix #970