Templated HTML galleries based on in-photo metadata