Applications of chemicals in photography