Fix ejs bug in single image page