Influence of physical and chemical heterogeneity shape on thin film rupture