Merging uniform lens templates