A niche based genetic algorithm for image registration