modify cache times and add imageoptim pre-commit hook to optimise images