modify mainCentroid for general geometry of lenslets
modify mainCentroid to be able to work in different geometry of lenslet structure
fix the conflict