updated favicon function with options