changes index and flick routes to use differents templates
extracts building of jpg urls to util script