Substrate deformation and thin film growth