Moved image template to main.js