Fix favicon writing.
Only store certain file extension types.