updated voting template and can record votes in db, set temp img src