Influence of the film deposition rate and humidity on the properties of thin CsI photocathodes