slight refactor to favicon code