Implication of polymeric template agent on the formation process of hybrid halide perovskite films