Copy of https://github.com/crekev/newphotopoll with some experiments